<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/common.css"/>
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/dl.css"/>
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/jgxxgl1.css"/>
<script type="text/javascript" src="${BASE_PATH}/static/js/jquery.js"></script>
<script type="text/javascript" src="${BASE_PATH}/static/js/jquery.pagination.js"></script>
<script src="${BASE_PATH}/static/js/jquery.lightbox_me.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="${BASE_PATH}/static/js/login.js"></script>		
<script type="text/javascript" src="${BASE_PATH}/static/js/jquery.form.js"></script>
<script type="text/javascript">
	function AjaxSubmit()
    {  
    	var cValue =$("#form1").formSerialize(); 
        $.ajax({
            type: "POST",
            url: "${BASE_PATH}/res_cust/save",
			dataType : "json",
			cache : false,
			data : cValue + "&no-cache=" + Math.round(Math.random() * 10000),
			success : onAfterSubmit
		});
	}
	
	function onAfterSubmit(ret) {
		//保存成功
		if (ret.Code == 1) {
			alert("数据保存成功！");
			window.location.reload();
			return;
		}

		if (ret.Code == 2) {
			alert("用户登录失败！");
			return;
		}

		//验证失败
		if (ret.Code == 3) {
			var vCtrlID = ret.ctrlID;
			var vMessage = ret.message;
			$("#" + vCtrlID).focus();
			alert(vMessage);
			return;
		}
	}	
</script>
<title>定制化资源</title>
</head>
<body>
<!--head start-->
<#include "../common/myspacetop.ftl"/> 
<!--head end-->
<div class="fnav system_fnav">
   <ul>
      <li><a href="###" target="_top">首页</a></li>
      <li><span>></span></li>
      <li><a href="###" target="_top">我的预约</a></li>
      <li><span>></span></li>
      <li><a href="###" target="_top">所有预约</a></li>
   </ul>   
</div>
<div class="my-content">
   <#include "../common/left.ftl"/> 
   <div class="coright"> 
      <h2 class="my-bt"><span>定制化资源</span></h2>
      <div class="content-con">
        <form id="form1" method="post">
         <div class="content-con1" style="display:none">
            <span class="bttext">单位名称:</span><input type="text"  />
         </div>
         <div class="content-con1">
            <span class="bttext">资源的具体名称:</span><input type="text" id="res_title" name="res_title" />
         </div>
         <div class="content-con1">
            <span class="bttext">资源适宜人群:</span><input type="text" id="res_recommandgroup" name="res_recommandgroup"/>
         </div>
         <div class="content-con1">
            <span class="bttext">学科类型:</span>
             <select id="res_viewtype" name="res_viewtype">	
				<#list typeid_38_list as rowkey>  
           		<li><option value="${rowkey.code_name_id}">${rowkey.code_value}</option>
           		</#list>	
        	</select>
         </div>
         <div class="content-con2">
            <span class="bttext">使用该资源的具体规定及要求:</span>
            <textarea id="res_requirement" name="res_requirement"></textarea>
         </div>
         <div class="content-con1">
            <span class="bttext">资源类型:</span>
             <select id="res_viewtype" name="res_viewtype">	
				<#list typeid_19_list as rowkey>  
           		<li><option value="${rowkey.code_name_id}">${rowkey.code_value}</option>
           		</#list>	
        	</select>
         </div>
         <div class="content-con2">
            <span class="bttext">资源内容简介:</span><textarea id="res_summy" name="res_summy"></textarea>
         </div>
         <div class="content-con2">
            <span class="bttext">备注:</span><textarea id="res_desc" name="res_desc"></textarea>
         </div>
		 <div class="content-con1">
            <span class="bttext">联系人:</span><input type="text" id="res_contact" name="res_contact" />
         </div>
         <div class="content-con1">
            <span class="bttext">电话:</span><input type="text" id="res_contact_phone" name="res_contact_phone" />
         </div>
         </form>
         <div class="clear"></div>
         <div class="bcbutton1"><a href="###" class="bccg">保存为草稿</a><input type="submit" value="提交" onclick="AjaxSubmit();" /></div>
     </div>
  </div>
</div>
<div class="clear"></div>
</body>
</html>
